import '../../core/utils/route/route_util.dart';
import 'my_routes.dart';

/// 主页模块导航器
class MyNavigator {
  MyNavigator._();

  /// 跳转到Text
  static Future<T?>? toText<T>() {
    return toPage<T>(MyRoutes.text);
  }

  static Future<T?>? toScrollList<T>() {
    return toPage<T>(MyRoutes.scrollList);
  }

  static Future<T?>? toReactiveForms<T>() {
    return toPage<T>(MyRoutes.reactiveForms);
  }

  static Future<T?>? toBuilderForms<T>() {
    return toPage<T>(MyRoutes.builderForms);
  }

}